package com.syyo.gulimall.cart.service;

import com.syyo.gulimall.cart.vo.Cart;
import com.syyo.gulimall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @ author wang
 * @ date: 2021/4/20 16:03
 * @ Description:
 */
public interface CartService {

    CartItem add(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    Cart getCart() throws ExecutionException, InterruptedException;

    void itemCheck(Long skuId, Integer check);

    void countItem(Long skuId, Integer num);

    void delItem(Long skuId);

    List<CartItem> getCurrentUserCartItems();

}
